package com.zyz.controller;

import com.zyz.api.base.activity.ActivityApi;
import com.zyz.base.response.Message;
import com.zyz.common.controller.BaseController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
@Slf4j
@CrossOrigin
public class UserController extends BaseController {
    @Autowired
    private ActivityApi activityApi;

    @RequestMapping(value = "/test", method = RequestMethod.GET)
    public Message<String> test(String param) {
        String params = "user -> " + param;
        return activityApi.test(params);
    }
}
